/*
 * @Author: Turump 
 * @Date: 2021-04-25 09:47:17 
 * @Last Modified by: Turump
 * @Last Modified time: 2021-04-25 09:50:27
 * 调整到父节点的最上层
 */

import { TaskBase } from "./TaskBase";

const { ccclass, property, menu } = cc._decorator;

@ccclass
@menu("任务组件/在父结点TOP")
export default class SlibingTopTask extends TaskBase {

    @property({ displayName: "完成Emit事件", tooltip: "任务完成Emit事件", override: true, visible: false })
    doneEvent = ""

    @property({ displayName: "任务支持暂停", override: true, visible: false })
    isPauseable = false;

    @property({ displayName: "重复任务", override: true, visible: false })
    repeatableTask = false;

    enableTask() {
        this.node.setSiblingIndex(this.node.parent.childrenCount);
    }
}
